package com.encapsulation.exer2;

public class BankTest {
	public static void main(String[] args) {
		Bank bank = new Bank();
	
		bank.addCustomer("kong", "xiao");
	
//		System.out.println("llll");
		bank.getCustomers(0).setAccount(new Account(2000));
		
		bank.getCustomers(0).getAccount().withdarw(500);
		
		
		double balance =bank.getCustomers(0).getAccount().getBalance();
		System.out.println("客户："+bank.getCustomers(0).getFirstName()+"的余额为"+balance);
	
		System.out.println("*******************");
		bank.addCustomer("ming", "xiao");
		
		System.out.println("客户的总数为："+bank.getNumberOfCustomer());
	}
	
	
	
}
